/**
 * 
 */
package de.nak.roommgmt.action;

import java.util.List;

import org.apache.struts.action.ActionForm;

import de.nak.roommgmt.model.Course;
import de.nak.roommgmt.model.Lecture;
import de.nak.roommgmt.model.Room;

/**
 * Action form for the lecture entity.
 * @author Stephan Anft
 */
public class LectureForm extends ActionForm {
	/** Serial version uid. */
	private static final long serialVersionUID = 1L;
	/** The list of lectures. */
	private List<Lecture> lectures;
	/** The current lecture object. */
	private Lecture lecture;
	/** The list of available rooms. */
	private List<Room> availableRooms;
	/** The list of available courses. */
	private List<Course> availableCourses;
	/** The id of the assigned room. */
	private Long roomId;
	/** The id of the assigned course. */
	private Long courseId;
	
	/**
	 * Returns the list of lectures.
	 * @return the list.
	 */
	public List<Lecture> getLectures() {
		return lectures;
	}
	
	/**
	 * Sets the list of lectures.
	 * @param lectures the list to set.
	 */
	public void setLectures(List<Lecture> lectures) {
		this.lectures = lectures;
	}

	/**
	 * Returns the current lecture.
	 * @return a lecture.
	 */
	public Lecture getLecture() {
		return lecture;
	}

	/**
	 * Sets the current lecture.
	 * @param lecture the lecture to set.
	 */
	public void setLecture(Lecture lecture) {
		this.lecture = lecture;
	}

	/**
	 * Returns the list of available rooms.
	 * @return a list.
	 */
	public List<Room> getAvailableRooms() {
		return availableRooms;
	}

	/**
	 * Sets the list of available rooms.
	 * @param availableRooms the list to set.
	 */
	public void setAvailableRooms(List<Room> availableRooms) {
		this.availableRooms = availableRooms;
	}

	/**
	 * Returns the list of available courses.
	 * @return a list.
	 */
	public List<Course> getAvailableCourses() {
		return availableCourses;
	}

	/**
	 * Sets the list of available courses.
	 * @param availableCourses the list to set.
	 */
	public void setAvailableCourses(List<Course> availableCourses) {
		this.availableCourses = availableCourses;
	}

	/**
	 * Returns the selected room id.
	 * @return a long.
	 */
	public Long getRoomId() {
		return roomId;
	}

	/**
	 * Sets the selected room id.
	 * @param roomId the roomId to set.
	 */
	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	/**
	 * Returns the selected course id.
	 * @return a long.
	 */
	public Long getCourseId() {
		return courseId;
	}

	/**
	 * Sets the selected course id.
	 * @param courseId the courseId to set.
	 */
	public void setCourseId(Long courseId) {
		this.courseId = courseId;
	}

	
}
